import request from '@/utils/request.js'

import {useTokenStore} from '@/stores/token.js'










export const shipListService = (params)=>{
    return  request.get('/admin/ship/listAll',{params:params})
}


export const shipAddService = (data)=>{
    return request.post('/admin/ship/add',data);

}


export const shipDelService = (id)=>{
    return request.get('/admin/ship/del?id='+id)
}

export const shipEditService = (data)=>{
    return  request.post('/admin/ship/edit',data)
}

export const shipResourcePublishService = (data)=>{
    return  request.post('/admin/ship/publish',data)
}
